package com.byb.server.repository;

import com.byb.server.domain.WcClaimCases;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import org.springframework.data.jpa.repository.*;
import sun.rmi.runtime.Log;

import java.util.List;


/**
 * Spring Data JPA repository for the WcClaimCases entity.
 */
@SuppressWarnings("unused")
@Repository
public interface WcClaimCasesRepository extends JpaRepository<WcClaimCases, Long> {

    List<WcClaimCases> findAllByWcProductId(Long id);

    @Query("select distinct c.wcClainParty.id from WcClaimCases c where c.wcProduct.id=:id ")
    List<Long> findAllByWcProductIdForwcClainPartyId(@Param("id") Long id);
}
